package com.whq.knowverywell.business.model;

import java.io.Serializable;

/**
 * home item used by HomeAdapter
 * 
 * @author daiwei
 *
 */
public class HomeItem implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int itemId;
	
	private String itemTitle;
	
	private int resourceId;
	
	public HomeItem() {
		
	}
	
	public HomeItem(int itemId, String itemTitle, int resourceId) {
		this.itemId = itemId;
		this.itemTitle = itemTitle;
		this.resourceId = resourceId;
	}

	public int getItemId() {
		return itemId;
	}

	public void setItemId(int itemId) {
		this.itemId = itemId;
	}

	public String getItemTitle() {
		return itemTitle;
	}

	public void setItemTitle(String itemTitle) {
		this.itemTitle = itemTitle;
	}

	public int getResourceId() {
		return resourceId;
	}

	public void setResourceId(int resourceId) {
		this.resourceId = resourceId;
	}
	
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer("HomeItem : ");
		sb.append(" itemId[").append(itemId).append("]")
		.append(" itemTitle[").append(itemTitle).append("]")
		.append(" resourceId[").append(resourceId).append("]")
		;
		
		return sb.toString();
	}

}
